package com.huihui.gmall.product;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication//核心注解
@EnableDiscoveryClient//注册到乃扣日中心
@ComponentScan(value = "com.huihui.gmall")
@Slf4j
public class ServiceProductAdmin {

    public static void main(String[] args) {
        SpringApplication.run(ServiceProductAdmin.class,args);
        log.info("[Admin]管理员启动服务启动了...");
    }
}
